package com.example.ylgh.repository;

import com.example.ylgh.model.hosp.Hospital;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author hx
 * @create 2022/5/11 9:59
 * description:
 */
@Repository
public interface HospitalRepository extends MongoRepository<Hospital,String> {
    //判断数据是否存在
    Hospital getHospitalByHoscode(String hoscode);

    //根据医院名称模糊查询
    List<Hospital> findHospitalByHosnameLike(String hosname);

}
